<template>
	<view class="zone">
		<Header title="彩劵瓜分记录" ></Header>
		<view class="main">
			<!-- tab部分 -->
			<view class="tab">
				<view v-for="(item,index) in tablist" :key="index" :class="[stat == item.id?'active':'']"
					@click="tabchange(item.id)">{{item.name}}</view>
			</view>

			<view class="list"> 
				<view class="box">
					<p class="time">2023-05-24</p>
					<view class="item">
						<view class="bot">
							<view class="b_box">
								<image src="http://img.cpgm.cc/panda/static/monkey/jq.png" mode="widthFix" />
								<view>
									<text>今日拥有彩卷</text>
									<text>3400000</text>
								</view>
							</view>
							<view class="line"></view>
							<view class="b_box">
								<image src="http://img.cpgm.cc/panda/static/monkey/sj.png" mode="widthFix" />
								<view>
									<text>每张彩卷分</text>
									<text>0.33221</text>
								</view>
							</view>
						</view>

						<view class="more">
							<p>本期瓜分最多</p>
							<view class="ranklist">
								<view class="rankitem">
									<image src="http://img.cpgm.cc/panda/static/login/logo.png" mode="widthFix" />
									<p>瓜分<text>2300.00</text>水晶</p>
								</view>
							</view>
						</view>
						
					</view>
				</view>
			</view>

		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				tablist: [{
						id: 1,
						name: '平台记录'
					},
					{
						id: 2,
						name: '我的记录'
					}
				],
				stat: 1,
			};
		}
	}
</script>

<style lang="less">
.zone {
	background: url('http://img.cpgm.cc/panda/static/monkey/bgc.png') no-repeat;
	background-size: 100% 100%;
	min-height: 100vh;
}
.main {
	padding: 10px;
}


// tab导航
	.tab {
		width: 100%;
		display: flex;
		align-items: center;
		background: rgba(255,255,255,0.7);
		box-shadow: 0px 2px 4px 0px rgba(0,0,0,0.1);
		border-radius: 5px;
		padding: 5px;
		overflow: hidden;
		margin: 10px auto;
		border-radius: 7px;
		// backdrop-filter: blur(50px);

		view {
			width: 50%;
			height: 48px;
			text-align: center;
			line-height: 48px;
			color: #666666;
			font-size: 16px;
			font-weight: 600;
			border-radius: 7px;
		}
	}
	.active {
		color: #FFFFFF !important;
		background: linear-gradient(0deg, #FF3366, #FF6666);
	}


	.item {
		background: linear-gradient(180deg, rgba(255, 250, 251, 0.91), rgba(251, 239, 247, 0.91));
		box-shadow: 0px 1px 1px 0px rgba(0,0,0,0.2);
		padding: 10px;
		border-radius: 10px;
		margin-top: 5px;
	}


	
.bot {
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 15px 0;
		background: linear-gradient(180deg, rgba(239, 220, 230, 0.91), rgba(235, 223, 228, 0.91));
		border-radius: 18px;

		.b_box {
			width: 48%;
			display: flex;
			align-items: center;
			justify-content: center;

			image {
				width: 30px;
				margin-right: 10px;
			}

			view {
				display: flex;
				flex-direction: column;
				align-items: center;
				text:nth-child(1) {
					color: #333333;
					font-size: 14px;
				}
				text:nth-child(2) {
					color: #333333;
					font-size: 16px;
					font-weight: 600;
				}
			}
		}

		.line {
			width: 1px;
			height: 30px;
			background: #B3B2B2;
		}
	}

	.more {
		margin-top: 10px;

		p {
			color: #333333;
			font-size: 18px;
			font-weight: 600;
			text-align: center;
		}


		.rankitem {
			width: 30%;
			display: flex;
			flex-direction: column;
			align-items: center;

			image {
				width: 80%;
			}

			p {
				color: #333333;
				font-size: 12px;
				text {
					color: #FF3366;
				}
			}
		}
	}
</style>
